package com.zz.excel.exportExcelModel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

/**
 * Excel导出类2  ---EasyExcel新版本，无需再继承BaseRowModel类
 */
@Data
public class ExcelTwo{

    @ExcelProperty(value = "编号",index = 0)  //value表示表头名，index表示第几列
    private Long id;

    @ExcelProperty(value = "姓名",index = 1)
    private String name;

    @ExcelProperty(value = "年龄",index = 2)
    private Integer age;

}